package com.example.demo.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2023-02-16
 * Time: 16:58
 */
@Component
@ConfigurationProperties(prefix = "student")    //导入yml当中的对象
@Getter
@Setter
public class Student {

    private int id;
    private String name;
    private int age;


}
